<!DOCTYPE HTML>
<html>
<head>
    <meta charset="utf-8" />
    <title>会员中心-{eyou:global name='web_name' /}</title>
    <meta name="renderer" content="webkit">
    <meta http-equiv="X-UA-Compatible" content="IE=edge,chrome=1">
    <meta content="width=device-width, initial-scale=1.0, maximum-scale=1.0, user-scalable=0" name="viewport" />
    <link href="{eyou:global name='web_cmspath'/}/favicon.ico" rel="shortcut icon" type="image/x-icon" />
    {eyou:static file="users/skin/css/basic.css" /}
    {eyou:static file="users/skin/css/eyoucms.css" /}
    <!-- 新样式 2020-11-25 -->
    {eyou:static file="users/skin/css/element/index.css" /}
    {eyou:static file="users/skin/css/e-user.css" /}
    {eyou:include file="users/skin/css/diy_css.htm" /}

    {eyou:static file="/public/static/common/js/jquery.min.js"/}
    {eyou:static file="users/skin/js/bootstrap.min.js"/}
    {eyou:static file="/public/plugins/layer-v3.1.0/layer.js"/}
    {eyou:static file="users/skin/js/global.js"/}
    <script>
    $(function(){
        wenhou();
    })
    function wenhou(){
        var wenhou= new Date();
        var hour=wenhou.getHours();
        if(hour>0&&hour<12){
            document.getElementById('atip').innerHTML="早上好～ ";
        }else if(hour>12&&hour<19){
            document.getElementById('atip').innerHTML="下午好～ ";
        }else{
            document.getElementById('atip').innerHTML="晚上好～ ";
        }
    }
    </script>
</head>

<body class="centre">
<!-- 头部 -->
{eyou:include file="users/users_header.htm" /}
<!-- 头部结束 -->
<div class="breadcrumbs">
    <div class="w1226">
        <a href="{eyou:global name='web_cmsurl'/}">首页</a> <span class="sep">/</span> <a href="{eyou:url link='user/Users/index' /}">会员中心</a> <span class="sep">/</span> <span>会员主页</span>
    </div>
</div>
<div class="ey-body-bg">
    <div class="ey-body pd0">
        <div class="ey-container w1226">
            <!-- 侧边 -->
            {eyou:include file="users/users_left.htm" /}
            <!-- 侧边结束 -->
            <!-- 右侧 -->
            <div class="ey-con fr" >
                <!-- 数据统计 -->
                <div class="main-bg user-box clearfix">
                    <div class="mi-uc-box uc-main-box u_xinxi">
                        <div class="uc-content-box portal-content-box">
                            <div class="box-bd">
                                <div class="portal-main clearfix">
                                    <div class="user-card">
                                        <h2 class="username">{$users.nickname}</h2>
                                        <p class="tip" id="atip"></p>
                                        <a href="{eyou:url link='user/Users/info' /}" target="_blank" class="link">修改个人信息 &gt;</a>
                                        <img src="{$users.head_pic|get_head_pic=###}" alt="meike203" class="avatar">
                                    </div>
                                    <div class="user-actions">
                                        <ul class="action-list">
                                            <li>会员等级：
                                            {switch name="$users.level" }
                                                    {case value="1"} <span class="grade"> {/case}
                                                    {case value="2"} <span class="grade"> {/case}
                                                    {case value="3"} <span class="grade">  {/case}
                                                {/switch}{$users.level_name}</span>
                                         
                                            </li>
                                            {empty name="$users.is_mobile"}
                                            <li>绑定手机： <span><span class="tel"><a href="{eyou:url link='user/Users/info' /}">去绑定</a></span></span> </li>
                                            {else/}
                                            <li>绑定手机： <span><span class="tel">{$users.mobile|func_substr_replace=###,'*',3,6}</span></span> </li>
                                            {/empty}
                                            {empty name="$users.is_email"}
                                            <li>绑定邮箱： <span><span class="email"><a href="{eyou:url link='user/Users/info' /}">去绑定</a></span></span> </li>
                                            {else/}
                                            <li>绑定邮箱： <span><span class="email">{$users.email|func_substr_replace=###,'*',2,4}</span></span> </li>
                                            {/empty}
                                        </ul>
                                    </div>
                                </div>
                            </div>
                        </div>
                    </div>
                 </div>  
                 <div class="clearfix">
                    <div class="uc-main-box">
                        <div class="uc-content-box portal-content-box">
                            <div class="box-bd">
                                
                                <div class="portal-sub">
                                    <ul class="info-list clearfix">
                                        {eyou:spstatus id="field3"}
                                        <li>
                                            <div class="pic">
                                                <img src="{eyou:static file='users/skin/images/portal-icon-1.png' /}" alt="">
                                            </div>
                                            
                                            <div class="info">
                                                <h3>待支付的订单：<span class="num">{$field3.PendingPayment}</span></h3>
                                                <a href="{eyou:url link='user/Shop/shop_centre' vars='select_status=dzf'/}">查看待支付订单<i class="iconfont"></i></a>
                                            </div>
                                        </li>
                                        <li>
                                            <div class="pic">
                                                <img src="{eyou:static file='users/skin/images/portal-icon-2.png' /}" alt="">
                                            </div>
                                            <div class="info">
                                                <h3>待收货的订单：<span class="num">{$field3.PendingReceipt}</span></h3>
                                            <a href="{eyou:url link='user/Shop/shop_centre' vars='select_status=2'/}">查看待收货订单<i class="iconfont"></i></a>
                                            </div>
                                            
                                        </li>
                                        {eyou:if condition="$php_servicemeal >= 2 && !empty($global.web_shopcomment_switch)"}
                                        <li>
                                            <div class="pic">
                                                <img src="{eyou:static file='users/skin/images/portal-icon-3.png' /}" alt="">
                                            </div>
                                            <div class="info">
                                                <h3>待评价商品数：<span class="num">{$field3.CommentList}</span></h3>
                                                <a href="{eyou:url link='user/ShopComment/index'/}">查看待评价商品<i class="iconfont"></i></a>
                                            </div>
                                        </li>
                                        {/eyou:if}
                                        <li>
                                            <div class="pic">
                                                <img src="{eyou:static file='users/skin/images/portal-icon-4.png' /}" alt="">
                                            </div>
                                            <div class="info">
                                                <h3>喜欢的商品：<span class="num">{$others.collect_num}</span></h3>
                                                <a href="{eyou:url link='user/Users/collection_index'/}">查看喜欢的商品<i class="iconfont"></i></a>
                                            </div>
                                        </li>
                                        {/eyou:spstatus}
                                    </ul>
                                </div>
                            </div>
                        </div>
                    </div>
                </div>
             </div>  
            <!-- 右侧结束 -->
        </div>
    </div>
</div>

<script type="text/javascript">
    // 签到
    function userSignin(obj) {
        layer_loading('正在处理');
        $.ajax({
            type: "POST",
            url: $(obj).attr('data-url'),
            data: {_ajax:1},
            dataType: 'json',
            success: function (res) {
                layer.closeAll();
                if(res.code == 1){
                    layer.msg(res.msg, {icon: 6, time:1500});
                    $("#user_signin").html("已签到");
                    $("#users_scores").html(res.data.scores);
                }else{
                    showErrorAlert(res.msg);
                }
            },
            error:function(e){
                layer.closeAll();
                showErrorAlert(e.responseText);
            }
        });
    }
</script>

{eyou:include file="users/users_footer.htm" /}